package com.wanxi.file;

import java.io.File;
import java.util.Arrays;

public class MyListFile {
    public static void main(String[] args) {
        String path = "E:\\wanxi\\step-2\\java02-0921\\aa\\bb";
//        String child = "aa";
        File file=new File(path);
        File[] files = file.listFiles();
        System.out.println(Arrays.toString(files));
        for (int i = 0; i < files.length; i++) {
            System.out.println(files[i]);
        }
    }
}
